import { Select } from 'antd'
import React from 'react'
const { Option } = Select

const ProgramSelect = (props: any) => {
  const handleChange = (value: string) => {
    props.onOptionChange(value)
  }

  return (
    <Select
      defaultValue="所有项目"
      style={{
        width: 120,
      }}
      onChange={handleChange}>
      <Option value="all">所有项目</Option>
      <Option value="zero">未开始项目</Option>
      <Option value="incomplete">进行中项目</Option>
      <Option value="complete">已完成项目</Option>
    </Select>
  )
}

export default ProgramSelect
